package com.example.administrator.wallet.model.bean;

import java.util.List;

/**
 * Created by Administrator on 2018/8/30 0030.
 */

public class WebSocketPendingOrderBean {

    /**
     * error : null
     * result : {"limit":10,"offset":0,"total":7,"records":[{"ctime":1.535431164008745E9,"id":240,"source":"","amount":"0.1","market":"ETHUSDT","deal_money":"0","taker_fee":"0","user":1000008,"left":"0.1","type":1,"side":1,"mtime":1.535431164008745E9,"maker_fee":"0","price":"2300","deal_stock":"0","deal_fee":"0"},{"ctime":1.535017551423366E9,"id":128,"source":"","amount":"0.1","market":"ETHUSDT","deal_money":"0","taker_fee":"0","user":1000008,"left":"0.1","type":1,"side":1,"mtime":1.535017551423366E9,"maker_fee":"0","price":"2300","deal_stock":"0","deal_fee":"0"},{"ctime":1.535017535296296E9,"id":127,"source":"","amount":"0.1","market":"ETHUSDT","deal_money":"0","taker_fee":"0","user":1000008,"left":"0.1","type":1,"side":1,"mtime":1.535017535296296E9,"maker_fee":"0","price":"2300","deal_stock":"0","deal_fee":"0"},{"ctime":1.535017269755383E9,"id":123,"source":"","amount":"0.1","market":"ETHUSDT","deal_money":"0","taker_fee":"0","user":1000008,"left":"0.1","type":1,"side":1,"mtime":1.535017269755383E9,"maker_fee":"0","price":"2300","deal_stock":"0","deal_fee":"0"},{"ctime":1.535017259711542E9,"id":122,"source":"","amount":"0.1","market":"ETHUSDT","deal_money":"209.090884","taker_fee":"0","user":1000008,"left":"0.00909092","type":1,"side":1,"mtime":1.535523681355007E9,"maker_fee":"0","price":"2300","deal_stock":"0.09090908","deal_fee":"0e-20"},{"ctime":1.535016850080205E9,"id":120,"source":"","amount":"0.1","market":"ETHUSDT","deal_money":"0","taker_fee":"0","user":1000008,"left":"0.1","type":1,"side":1,"mtime":1.535016850080205E9,"maker_fee":"0","price":"2400","deal_stock":"0","deal_fee":"0"},{"ctime":1.535016646878584E9,"id":119,"source":"","amount":"1","market":"ETHUSDT","deal_money":"0","taker_fee":"0.002","user":1000008,"left":"1","type":1,"side":1,"mtime":1.535016646878584E9,"maker_fee":"0.001","price":"2500","deal_stock":"0","deal_fee":"0"}]}
     * id : 21
     */

    private Object error;
    private ResultBean result;
    private int id;

    public Object getError() {
        return error;
    }

    public void setError(Object error) {
        this.error = error;
    }

    public ResultBean getResult() {
        return result;
    }

    public void setResult(ResultBean result) {
        this.result = result;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public static class ResultBean {
        /**
         * limit : 10
         * offset : 0
         * total : 7
         * records : [{"ctime":1.535431164008745E9,"id":240,"source":"","amount":"0.1","market":"ETHUSDT","deal_money":"0","taker_fee":"0","user":1000008,"left":"0.1","type":1,"side":1,"mtime":1.535431164008745E9,"maker_fee":"0","price":"2300","deal_stock":"0","deal_fee":"0"},{"ctime":1.535017551423366E9,"id":128,"source":"","amount":"0.1","market":"ETHUSDT","deal_money":"0","taker_fee":"0","user":1000008,"left":"0.1","type":1,"side":1,"mtime":1.535017551423366E9,"maker_fee":"0","price":"2300","deal_stock":"0","deal_fee":"0"},{"ctime":1.535017535296296E9,"id":127,"source":"","amount":"0.1","market":"ETHUSDT","deal_money":"0","taker_fee":"0","user":1000008,"left":"0.1","type":1,"side":1,"mtime":1.535017535296296E9,"maker_fee":"0","price":"2300","deal_stock":"0","deal_fee":"0"},{"ctime":1.535017269755383E9,"id":123,"source":"","amount":"0.1","market":"ETHUSDT","deal_money":"0","taker_fee":"0","user":1000008,"left":"0.1","type":1,"side":1,"mtime":1.535017269755383E9,"maker_fee":"0","price":"2300","deal_stock":"0","deal_fee":"0"},{"ctime":1.535017259711542E9,"id":122,"source":"","amount":"0.1","market":"ETHUSDT","deal_money":"209.090884","taker_fee":"0","user":1000008,"left":"0.00909092","type":1,"side":1,"mtime":1.535523681355007E9,"maker_fee":"0","price":"2300","deal_stock":"0.09090908","deal_fee":"0e-20"},{"ctime":1.535016850080205E9,"id":120,"source":"","amount":"0.1","market":"ETHUSDT","deal_money":"0","taker_fee":"0","user":1000008,"left":"0.1","type":1,"side":1,"mtime":1.535016850080205E9,"maker_fee":"0","price":"2400","deal_stock":"0","deal_fee":"0"},{"ctime":1.535016646878584E9,"id":119,"source":"","amount":"1","market":"ETHUSDT","deal_money":"0","taker_fee":"0.002","user":1000008,"left":"1","type":1,"side":1,"mtime":1.535016646878584E9,"maker_fee":"0.001","price":"2500","deal_stock":"0","deal_fee":"0"}]
         */

        private int limit;
        private int offset;
        private int total;
        private List<RecordsBean> records;

        public int getLimit() {
            return limit;
        }

        public void setLimit(int limit) {
            this.limit = limit;
        }

        public int getOffset() {
            return offset;
        }

        public void setOffset(int offset) {
            this.offset = offset;
        }

        public int getTotal() {
            return total;
        }

        public void setTotal(int total) {
            this.total = total;
        }

        public List<RecordsBean> getRecords() {
            return records;
        }

        public void setRecords(List<RecordsBean> records) {
            this.records = records;
        }

        public static class RecordsBean {
            /**
             * ctime : 1.535431164008745E9
             * id : 240
             * source :
             * amount : 0.1
             * market : ETHUSDT
             * deal_money : 0
             * taker_fee : 0
             * user : 1000008
             * left : 0.1
             * type : 1
             * side : 1
             * mtime : 1.535431164008745E9
             * maker_fee : 0
             * price : 2300
             * deal_stock : 0
             * deal_fee : 0
             */

            private double ctime;
            private int id;
            private String source;
            private String amount;
            private String market;
            private String deal_money;
            private String taker_fee;
            private int user;
            private String left;
            private int type;
            private int side;
            private double mtime;
            private String maker_fee;
            private String price;
            private String deal_stock;
            private String deal_fee;

            public double getCtime() {
                return ctime;
            }

            public void setCtime(double ctime) {
                this.ctime = ctime;
            }

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getSource() {
                return source;
            }

            public void setSource(String source) {
                this.source = source;
            }

            public String getAmount() {
                return amount;
            }

            public void setAmount(String amount) {
                this.amount = amount;
            }

            public String getMarket() {
                return market;
            }

            public void setMarket(String market) {
                this.market = market;
            }

            public String getDeal_money() {
                return deal_money;
            }

            public void setDeal_money(String deal_money) {
                this.deal_money = deal_money;
            }

            public String getTaker_fee() {
                return taker_fee;
            }

            public void setTaker_fee(String taker_fee) {
                this.taker_fee = taker_fee;
            }

            public int getUser() {
                return user;
            }

            public void setUser(int user) {
                this.user = user;
            }

            public String getLeft() {
                return left;
            }

            public void setLeft(String left) {
                this.left = left;
            }

            public int getType() {
                return type;
            }

            public void setType(int type) {
                this.type = type;
            }

            public int getSide() {
                return side;
            }

            public void setSide(int side) {
                this.side = side;
            }

            public double getMtime() {
                return mtime;
            }

            public void setMtime(double mtime) {
                this.mtime = mtime;
            }

            public String getMaker_fee() {
                return maker_fee;
            }

            public void setMaker_fee(String maker_fee) {
                this.maker_fee = maker_fee;
            }

            public String getPrice() {
                return price;
            }

            public void setPrice(String price) {
                this.price = price;
            }

            public String getDeal_stock() {
                return deal_stock;
            }

            public void setDeal_stock(String deal_stock) {
                this.deal_stock = deal_stock;
            }

            public String getDeal_fee() {
                return deal_fee;
            }

            public void setDeal_fee(String deal_fee) {
                this.deal_fee = deal_fee;
            }
        }
    }
}
